<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$lang.home}{if $ur_here} - {$ur_here} {/if}</title>
<meta name="Copyright" content="Douco Design." />
<link href="templates/public.css" rel="stylesheet" type="text/css">
</head>
<body>
 <div id="order_detail" style="background-color:#ffffff" class="mainBox" style="{$workspace.height}">
  <h3>{$ur_here}</h3>
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
      <tbody>
      <tr>
          <th width="12%">订单号</th>
          <td width="38%">{$order.info.order_no}</td>
          <th width="12%">商品</th>
          <td>{$order.info.cat_name}</td>
        </tr>
        <tr>
          <th width="12%">用户名</th>
          <td width="38%">{$order.info.user_name}</td>
          <th width="12%">手机</th>
          <td>{$order.info.mobile}</td>
        </tr>
        <tr>
          <th>订单总额</th>
          <td><b class="red">{$order.info.total_price}</b> 元 <font class="c666 ml10">(含运费)</font></td>
          <th>下单日期</th>
          <td>{$order.info.add_time|date_format:'%Y-%m-%d %H:%M:%S'}</td>
        </tr>
        <!--
        <tr>
          <th>运费</th>
          <td>0.00 元</td>
          <th>支付方式</th>
          <td>支付宝</td>
        </tr>
        <tr>
          <th>付款时间</th>
          <td><font class="caaa">无</font></td>
          <th>第三方流水号</th>
          <td><font class="caaa">无</font></td>
        </tr>
        -->
        <tr>
          <th>订单状态</th>
          <td><b class="red">{$lang.order_state_name[$order.info.state]}</b></td>
          <th>支付状态</th>
          <td>{$lang.order_paystate_name[$order.info.paystate]}</td>
        </tr>
        
        <tr>
          <th>收货人信息</th>
          <td>
            <div class="module" id="order-consignee">
              <p>{$order.info.consignee}<font class="c555 ml10">(<b>{$order.info.mobile}</b>)</font></p>
              <p class="mt5">{$order.region.province} {$order.region.city} {$order.region.area} {$order.info.address}</p>
            </div>
          </td>
          <th>下单备注</th>
          <td><p class="caaa">无</p></td>
        </tr>
        </tbody>
      </table>

      <div class="filter"></div>

      <table class="tableBasic" width="100%" cellspacing="0" cellpadding="8" border="0">
        <tbody>
        <tr>
            <th width="22" align="center"><input name="chkall" id="chkall" onclick="selectcheckbox(this.form)" value="check" type="checkbox"></th>
            <th width="30" align="center">编号</th>
            <th align="center">预定日期</th>
            <th align="center">午餐时间</th>
            <th align="center">午餐数量</th>
            <th align="center">午餐状态</th>
            <th align="center">晚餐时间</th>
            <th align="center">晚餐数量</th>
            <th align="center">晚餐状态</th>
          </tr>
          {foreach from=$order.booking item=booking}
          <tr {if $today == $booking.bookdate}style="background-color:#99D6FF"{/if}>
            <td align="center"><input name="checkbox[]" value="10" type="checkbox"></td>
            <td align="center">{$booking.id}</td>
            <td align="center">{$booking.bookdate}</td>
            <td align="center">{$booking.noon}</td>
            <td align="center">{$booking.noon_num}</td>
            <td width="120" align="center">
            {$lang.bookstate_or[$booking.noon_state]}
            {if $booking.noon_state == '0'}
            [<a href="order.php?rec=action&action=noon_state&id={$booking.id}&order_no={$booking.order_no}"><font color="green">点击发货</font></a>]
            {/if}
            </td>
            <td align="center">{$booking.night}</td>
            <td align="center">{$booking.night_num}</td>
            <td width="120" align="center">
            {$lang.bookstate_or[$booking.night_state]}
            {if $booking.night_state == '0'}
            [<a href="order.php?rec=action&action=night_state&id={$booking.id}&order_no={$booking.order_no}"><font color="green">点击发货</font></a>]
            {/if}
            </td>
          </tr>
          {/foreach}
        </tbody>
      </table>
 </div>
</body>
</html>